<include file="Public:header" />
<!--主体内容-->
<!--左边-->
<div class="centent_box">
    <include file="Public:left" />
    <!--右边-->
    <div class="centent_right_box">
        <div class="centent_right rightCon">
            <div class="Mtitle">
                <ul>
                    <li class="on"><span>系统设置</span></li>
                </ul>
                <div class="rightWord"><a href="{:U('Set/dict')}">字典设置</a> &gt;&gt; 新增字典</div>
            </div>
            <form id="info_form" action="{:U('Set/dict_first')}" method="post" enctype="multipart/form-data">
                <div class="con_div">
                    <ul class="formList width2 list_ul list_mp">
                        <li>
                            <label>小区名称：</label>
                            <input type="text"  name="estate" class="inputStyle width3" value="{$estate.title}" readonly>
                            <input type="hidden"  name="eid"  value="{$estate.id}" >
                        </li>
                        <li class="li_radio">
                            <label class="lw90">名称类型：</label>
                            <input type="radio" name="type" id="type1" value="1" checked><label for="type1">数字</label>
                            <input type="radio" name="type" id="type2" value="2"><label for="type2">字母</label>
                        </li>
                        <li class="clear" id="area-sele">
                            <label>选择栋数：</label>
                            <select class="selectStyle" name="build" id="build">
                                <option value="0">--请选择--</option>
                                <volist name="build.num"  id="vo">
                                    <option value="{$vo}" class="num">{$vo}栋</option>
                                </volist>
                                <volist name="build.char"  id="vo">
                                    <option value="{$key+1}" class="char">{$vo}栋</option>
                                </volist>
                            </select>
                            <input type="hidden"  name="alias" >
                        </li>
                        <li>
                            <label>本栋多少单元：</label>
                            <input type="number"  name="unit" class="inputStyle width2"  placeholder="填写单元数">
                        </li>
                        <li>
                            <label>本栋层高：</label>
                            <input type="number"  name="heg" class="inputStyle width2" placeholder="填写层数" >
                        </li>
                        <li>
                            <label></label>
                            <input type="submit" value="下一步" class="btnStyle">
                        </li>
                    </ul>
                </div>
            </form>
        </div>
    </div>
</div>
<script>
    $('input[name=type]').click(function (){
        var va = $(this).val();
        if (va == 1){
            $('.num').show ();
            $('.char').hide ();
        }
        if (va == 2){
            $('.num').hide ();
            $('.char').show ();
        }
    });
    $('#build').change(function (){
        var text = $(this).find("option:selected").text();
        if (text == '--请选择--'){
            $('input[name=alisas]').val ('0');
        }else{
            $('input[name=alias]').val (text);
        }
    });
</script>
<include file="Public:footer" />